package com.weaver.drools.business.execution.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weaver.drools.business.execution.service.IQCmnOperatepoint20Service;
import com.weaver.drools.common.dao.QCmnOperatepoint20Dao;
import com.weaver.drools.common.entity.QCmnOperatepoint20;
@Service
public class QCmnOperatepoint20ServiceImpl implements IQCmnOperatepoint20Service {
	
	@Autowired
	private QCmnOperatepoint20Dao operatepoint20Dao;
	

	@Override
	public QCmnOperatepoint20 findById(Long operatepointid) {
		return operatepoint20Dao.findQCmnOperatepoint20ByOperatepointid(operatepointid);
	}

	@Override
	public List<QCmnOperatepoint20> findQCmnOperatepoint20ByList() {
		return operatepoint20Dao.findAll();
	}

	@Override
	public void saveQCmnOperatepoint20(QCmnOperatepoint20 operatepoint20) {
		operatepoint20Dao.saveOrUpdate(operatepoint20);
		
	}

	@Override
	public void updateQCmnOperatepoint20(QCmnOperatepoint20 operatepoint20) {
		operatepoint20Dao.saveOrUpdate(operatepoint20);
	}

	@Override
	public void deleteById(Long operatepointid) {
		operatepoint20Dao.deleteById(operatepointid);
	}

	
}
